//
//  WZUserInfoModel.swift
//  OfficeExaminationSwift
//
//  Created by Yeeewz on 2018/1/11.
//  Copyright © 2018年 Yeeewz. All rights reserved.
//

import UIKit
import ObjectMapper

class WZUserInfoModel:   Mappable{
    var userIcon : String?
    var userNickname : String?
    var auditAuthority : String?
    var userPosition : String?
    var uid : Int?
    required init?(map: Map) {
        if map.JSON["userIcon"] == nil{
            return nil
        }
        if map.JSON["userNickname"] == nil{
            return nil
        }
        if map.JSON["auditAuthority"] == nil{
            return nil
        }
        if map.JSON["userPosition"] == nil{
            return nil
        }
        if map.JSON["uid"] == nil{
            return nil
        }
    }
    
    func mapping(map: Map) {
        userIcon <- map["userIcon"]
        userNickname <- map["userNickname"]
        auditAuthority <- map["auditAuthority"]
        userPosition <- map["userPosition"]
        uid <- map["uid"]
        
    }
    

}

